package com.shuai.orderfood.exceptions;

import lombok.Data;

public class OrderFoodException extends Exception {
    private Integer code; // 自定义错误码
    private String message; // 错误信息

    public OrderFoodException() {

    }

    public OrderFoodException(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
